package cn.com.hwxt.action;

import ch.qos.logback.classic.Logger;
import cn.com.hwxt.service.i.TestDemoService;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
public class CommonCtler {
    /**
     * 主页跳转
     */
    @RequestMapping(value = "/")
    public String gotoIndex() {

        return "index";
    }

    /**
     * 主页跳转
     */
    @RequestMapping(value = "/helloWorld")
    @ResponseBody
    public String helloWorld() {
        return testDemoService.helloWorld();
    }
    @Autowired
    public TestDemoService testDemoService;

    private Logger log = (Logger) LoggerFactory.getLogger(this.getClass());
}
